package pojo;



import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name="customer002")
@SequenceGenerator(name="zivq",sequenceName="ziv_seq01",initialValue=1,allocationSize=1)
public class Customer {
	@Id
	@GeneratedValue(generator="zivq",strategy=GenerationType.SEQUENCE)
	private Integer id;
	@Column(name="cname",nullable=true,length=40,insertable=true,updatable=true,unique=false)
	private String cname;
	//@Transient
	private int age;
	@Column(columnDefinition="char(1)")
	private boolean sex;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	
}
